VindiPaymentGateways\VindiPaymentProcessor D

Total Complexity 251
Dependencies 12
Dependents 1
Total lines 1,608
Lines of code 965
Logical lines of code 570
Comment lines 357
Methods 69
Properties 7

Methods 69

Method Rating Maintainability Complexity Lines of code
process_order()
A
38 10 73
get_cycle_from_product_type()
A
54 12 19
create_subscription()
A
49 9 27
get_plan_from_order_item()
A
57 9 15
build_tax_item()
A
50 8 27
build_shipping_item()
A
50 8 27
get_product()
S
54 7 20
change_payment_to_credit_card()
S
51 6 27
build_discount_item_for_subscription()
S
51 6 26
build_interest_rate_item()
S
51 6 25
build_product_items_for_bill()
S
55 6 20
order_has_trial_and_simple_product()
S
56 6 20
build_sign_up_fee_item()
S
54 6 20
build_product_items_for_subscription()
S
53 5 23
build_product_from_order_item()
S
54 5 21
build_discount_item_for_bill()
S
54 5 20
create_bill_meta_for_order()
S
54 5 20
cancel_if_denied_bill_status()
S
56 5 18
coupon_supports_product()
S
59 5 16
calculate_discount()
S
51 4 27
get_customer()
S
62 5 11
build_product_from_order_item_bill()
S
56 4 17
apply_discount()
S
60 4 14
create_payment_profile()
S
60 4 13
create_payment_profile_bank_slip()
S
61 4 12
create_bill()
S
54 3 21
change_method_payment()
S
55 3 19
group_order_items_by_subscription()
S
57 3 18
add_additional_items()
S
59 3 16
process()
S
64 4 10
build_product_items()
S
58 3 15
validate_discount_percentage_sign_up_fee()
S
58 3 15
payment_method_code()
S
61 3 14
update_order_status()
S
61 3 12
config_discount_cycles()
S
62 3 11
cancel_subscriptions_and_order()
S
62 3 11
order_has_trial()
S
63 3 11
calculate_full_price()
S
68 3 6
build_items()
S
64 3 10
get_order_type()
S
70 3 6
get_plan_length()
S
67 3 9
check_multiple_subscriptions_of_same_period()
S
66 3 8
subscription_has_trial()
S
77 3 3
installments()
S
65 3 9
get_cc_payment_type()
S
59 2 14
finish_payment()
S
61 2 13
apply_remainder()
S
62 2 12
process_subscription_item()
S
62 2 11
generate_log_message()
S
65 2 9
suspend_subscriptions()
S
73 2 5
cancel_bills()
S
73 2 5
__construct()
S
64 2 9
get_vindi_code()
S
67 2 8
check_trial_and_single_product()
S
66 2 8
abort()
S
67 2 8
exist_subscription()
S
68 2 8
verify_payment_profile()
S
72 2 5
get_call_build_items_method()
S
67 2 7
build_payment_profile()
S
61 1 12
fields_credit_card()
S
64 1 11
is_one_time_shipping()
S
78 1 3
create_shipping_product()
S
71 1 6
is_bank_slip()
S
80 1 3
is_variable()
S
79 1 3
is_subscription_type()
S
79 1 3
is_cc()
S
80 1 3
get_bank_slip_payment_type()
S
72 1 6
get_trial_matching_subscription_item()
S
72 1 5
get_build_products()
S
71 1 6